/*
 * @文件描述: 
 * @版本: 
 * @作者: 周晨阳
 * @Date: 2021-01-23 12:13:42
 */
#ifndef OSCILLOSCOPEUICODES_H
#define OSCILLOSCOPEUICODES_H
#include "GUI.h"
#include <stddef.h>

#include "DIALOG.h"
#include <math.h>
#include "WM.h"
#include "BUTTON.h"
#include "CHECKBOX.h"
#include "DROPDOWN.h"
#include "EDIT.h"
#include "FRAMEWIN.h"
#include "LISTBOX.h"
#include "MULTIEDIT.h"
#include "RADIO.h"
#include "SLIDER.h"
#include "TEXT.h"
#include "PROGBAR.h"
#include "SCROLLBAR.h"
#include "LISTVIEW.h"
#include "typedef.h"

void onViewOscillUI_Init(void);
void onViewSetGraph(GUI_POINT *data, unsigned int size);
void onViewSetGraphSize(int size);
void onViewdrawGraph(WM_MESSAGE *pMsg);

void onViewSetOscillDataList(OscillInfo* list);
WM_HWIN getMainWin(void);

void onViewSetH_Scale(const char *str);
void onViewsetV_Scale(const char *str);

void onViewShowCursor(unsigned char which);
void onViewHideCursor(unsigned char which);
void onViewSetCursorPos(unsigned char which, unsigned int posX);
void onViewSetCursorValue(unsigned char which, unsigned int value);
void onViewSetHoldState(unsigned char state);
void onViewSetH_Offset(int offset);
void onViewSetV_Offset(int offset);
void onViewSetTriggerType(uint8_t type);
void onViewSetTriggerVoltage(float voltage);
void onViewSetTriggerState(uint8_t state);
void onViewSetCursor(Cursor *c);
void onViewSetMenuInfo(MenuInfo *m,uint8_t itemCnt);
void onViewSetTriggerCursorPos(uint16_t pos);
void onViewSetTriggerCursorState(uint8_t state);

void onViewSetWaveWinInfo(float width,int pos);
void onViewSetCursorListInfo(OscillInfo *p);

#endif